package com.bowos.zmado.model;

import com.orifine.orm.annotation.Column;
import com.orifine.orm.annotation.Id;
import com.orifine.orm.annotation.Length;
import com.orifine.orm.annotation.NotNull;
import com.orifine.orm.annotation.Table;
import com.orifine.orm.information.AutoIncrementInfo;
import com.orifine.orm.model.ColumnModel;
import com.orifine.orm.type.Address;

/**
 * 版块
 * @author Administrator
 *
 */
@Table
public class Forum {
	@Id
	@Column
	private Integer id;
	
	public static final ColumnModel columnId = new ColumnModel().setInformation(new AutoIncrementInfo(1000,5));
	
	/**
	 * 版块名称
	 */
	@Column
	@Length(100)
	private String name;
	
	/**
	 * 版块标志图片地址
	 * 版块有一个图片图标，用于表示此版块的意义
	 */
	@Column
	private Address flagImageAddress;
	
	/**
	 * 主题数量
	 */
	@Column
	@NotNull
	private Integer subjectCount;
	
	/**
	 * 帖子数量
	 */
	@Column
	@NotNull
	private Integer postCount;
	
	/**
	 * 最新发布的主题
	 */
	@Column
	private Subject latestRelease;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Address getFlagImageAddress() {
		return flagImageAddress;
	}

	public void setFlagImageAddress(Address flagImageAddress) {
		this.flagImageAddress = flagImageAddress;
	}

	public Integer getSubjectCount() {
		return subjectCount;
	}

	public void setSubjectCount(Integer subjectCount) {
		this.subjectCount = subjectCount;
	}

	public Integer getPostCount() {
		return postCount;
	}

	public void setPostCount(Integer postCount) {
		this.postCount = postCount;
	}

	public Subject getLatestRelease() {
		return latestRelease;
	}

	public void setLatestRelease(Subject latestRelease) {
		this.latestRelease = latestRelease;
	}
}
